package com.jzo2o.customer.controller.open;

import com.jzo2o.common.constants.UserType;
import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: liZhiJun
 * @CreateTime: 2025-09-26
 * @Description:
 * @Version: 1.0
 */

@Slf4j
@RestController
@RequestMapping
@RequiredArgsConstructor
public class ServeProvideInstitutionController {
    private final IServeProviderService serveProviderService;

    /**
     * 机构入驻.注册
     */
    @PostMapping("/open/serve-provider/institution/register")
    public void register(@RequestBody InstitutionRegisterReqDTO registerReqDTO) {
        log.info("机构注册：{}", registerReqDTO);
        serveProviderService.register(registerReqDTO, UserType.INSTITUTION);
    }


}
